package com.ruoyi.user.dependency;

import com.ruoyi.user.model.CmsDict;
import com.ruoyi.user.model.CmsGoods;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "ruoyi-cms")
public interface CmsService {

    @GetMapping("cms/website/language/list/for/ms/service")
    List<CmsDict> listForMsService();


    @GetMapping(value = "cms/manager/goods/detail/{id}")
    CmsGoods getGoodsInfo(@Parameter(description = "商品ID", required = true) @PathVariable("id") Long id);
}
